package dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ServerTab entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "server_tab", catalog = "leko")
public class ServerTab implements java.io.Serializable {

	// Fields

	private Integer serverId;
	private Integer gameId;
	private String serverName;
	private String serverIp;
	private Integer serverPort;
	private String dbIp;
	private String dpPort;
	private Integer serverStat;

	// Constructors

	/** default constructor */
	public ServerTab() {
	}

	/** full constructor */
	public ServerTab(Integer gameId, String serverName, String serverIp,
			Integer serverPort, String dbIp, String dpPort, Integer serverStat) {
		this.gameId = gameId;
		this.serverName = serverName;
		this.serverIp = serverIp;
		this.serverPort = serverPort;
		this.dbIp = dbIp;
		this.dpPort = dpPort;
		this.serverStat = serverStat;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "server_id", unique = true, nullable = false)
	public Integer getServerId() {
		return this.serverId;
	}

	public void setServerId(Integer serverId) {
		this.serverId = serverId;
	}

	@Column(name = "game_id")
	public Integer getGameId() {
		return this.gameId;
	}

	public void setGameId(Integer gameId) {
		this.gameId = gameId;
	}

	@Column(name = "server_name")
	public String getServerName() {
		return this.serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	@Column(name = "server_ip", length = 20)
	public String getServerIp() {
		return this.serverIp;
	}

	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}

	@Column(name = "server_port")
	public Integer getServerPort() {
		return this.serverPort;
	}

	public void setServerPort(Integer serverPort) {
		this.serverPort = serverPort;
	}

	@Column(name = "db_ip", length = 20)
	public String getDbIp() {
		return this.dbIp;
	}

	public void setDbIp(String dbIp) {
		this.dbIp = dbIp;
	}

	@Column(name = "dp_port", length = 8)
	public String getDpPort() {
		return this.dpPort;
	}

	public void setDpPort(String dpPort) {
		this.dpPort = dpPort;
	}

	@Column(name = "server_stat")
	public Integer getServerStat() {
		return this.serverStat;
	}

	public void setServerStat(Integer serverStat) {
		this.serverStat = serverStat;
	}

}